const express = require('express');
const router = express.Router();

// Import version-specific routes
const v1Routes = require('./v1');
const v2Routes = require('./v2');

// Version-specific route mounting
router.use('/v1', v1Routes);
router.use('/v2', v2Routes);

// Default to latest version (v2)
router.use('/', v2Routes);

module.exports = router;